CreateTextureFromSurface(Surface, TextureScalingQuality)

Method

Namespace: Imagini.Drawing

Declared in: Imagini.Drawing.Graphics


Creates a static texture from an existing surface.

Syntax

public Texture CreateTextureFromSurface(
	Surface surface,
	TextureScalingQuality quality
)

Parameters

surface

Surface to create texture from

quality

Filtering quality when texture is scaled

Remarks

The surface is not modified or disposed by this function. TextureAccess is static. The pixel format of the created texture may be different from the pixel format of the surface.
Back to index